<?php if(!defined('BASEPATH')) exit("Sorry, what you're looking not found.");
class C_pengumuman extends Nvl_Controller{
    function __construct(){
        parent::__construct();
        session_start();
		$this->__checkSession();
    }

    function index(){
		$this->db->where('lomba_sekolah_id', $_SESSION[SESSION_SCHOOLID]);
		$data['poster'] = $this->db->select('lomba_poster, lomba_judul')->order_by('lomba_id', 'desc')->limit(3)->get('t_lomba')->result();
        $this->load->view('pages/v_pengumuman', $data);
    }
}